CC = gcc
CFLAGS = -g -c -Wall ##-Werror
LDFLAGS = -g

tp1: main.o leitura.o principal.o
		$(CC) $(LDFLAGS)-o $@ principal.o leitura.o main.o -lm

main.o: main.c cabecalho.h
		$(CC) $(CFLAGS) main.c
		
leitura.o: leitura.c cabecalho.h
		$(CC) $(CFLAGS) leitura.c
		
principal.o: principal.c cabecalho.h
		$(CC) $(CFLAGS) principal.c
clean:
		rm -f *.o main

run: tp1
		./tp1 -i entrada.txt



